package zyqMany;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestStu {
    public static void main(String[] args) {
        ApplicationContext ac=
                new ClassPathXmlApplicationContext("applicationContext.xml");
        StuDao dao=ac.getBean(StuDao.class);
        Stu stu=dao.stuCourses("1");
        System.out.println(stu);
        System.out.println(stu.getCourses());
    }
}